package com.it.Test;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Lihua> list1 = new ArrayList<>();
        ArrayList<HuskyDog> list2 = new ArrayList<>();

        keepPet(list1);
        keepPet(list2);
    }

    public static void keepPet(ArrayList<? extends Animal> list) {

    }
}
